package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.ExportParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ColumnItemsMapper;
import com.ruoyi.system.domain.ColumnItems;
import com.ruoyi.system.service.IColumnItemsService;

/**
 * 列项Service业务层处理
 * 
 * @author he
 * @date 2025-08-15
 */
@Service
public class ColumnItemsServiceImpl implements IColumnItemsService 
{
    @Autowired
    private ColumnItemsMapper columnItemsMapper;

    /**
     * 查询列项
     * 
     * @param id 列项主键
     * @return 列项
     */
    @Override
    public ColumnItems selectColumnItemsById(Long id)
    {
        return columnItemsMapper.selectColumnItemsById(id);
    }

    /**
     * 查询列项列表
     * 
     * @param columnItems 列项
     * @return 列项
     */
    @Override
    public List<ColumnItems> selectColumnItemsList(ColumnItems columnItems)
    {
        return columnItemsMapper.selectColumnItemsList(columnItems);
    }

    /**
     * 新增列项
     * 
     * @param columnItems 列项
     * @return 结果
     */
    @Override
    public int insertColumnItems(ColumnItems columnItems)
    {
        return columnItemsMapper.insertColumnItems(columnItems);
    }

    /**
     * 修改列项
     * 
     * @param columnItems 列项
     * @return 结果
     */
    @Override
    public int updateColumnItems(ColumnItems columnItems)
    {
        return columnItemsMapper.updateColumnItems(columnItems);
    }

    /**
     * 批量删除列项
     * 
     * @param ids 需要删除的列项主键
     * @return 结果
     */
    @Override
    public int deleteColumnItemsByIds(Long[] ids)
    {
        return columnItemsMapper.deleteColumnItemsByIds(ids);
    }

    /**
     * 删除列项信息
     * 
     * @param id 列项主键
     * @return 结果
     */
    @Override
    public int deleteColumnItemsById(Long id)
    {
        return columnItemsMapper.deleteColumnItemsById(id);
    }

    @Override
    public List<ColumnItems> selectColumnItemsListForExport(ExportParam exportParam) {
        return columnItemsMapper.selectColumnItemsListForExport(exportParam);
    }
}
